<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets" lang="es"
	xmlns:pe="http://primefaces.org/ui/extensions">

<h:head>
<script>
	function showLoading(){
		$('#facebookG').css('display','block');
		$('#overlay').css('display','block');
		$('#mnkrLogo').css('display','none');
	}
	
	function hideLoading(){
		$('#facebookG').css('display','none');
		$('#overlay').css('display','none');
		
		$('#mnkrLogo').css('display','block');
		
	}
</script>
</h:head>
<h:body>
	<h:form id="frmAdds" prependId="false">
	
<!-- 		ajax status -->
		<p:ajaxStatus onstart="showLoading()" onsuccess="hideLoading()"/>
		<div class="ui-widget-overlay" id="overlay" style="background: none !important; display: none;"></div>

		<!-- right click -->
<!-- 		<p:contextMenu>   -->
<!-- 	        <p:menuitem value="Save"   -->
<!-- 	            icon="ui-icon-disk"/>   -->
<!-- 	        <p:menuitem value="Update"   -->
	           
<!-- 	            icon="ui-icon-arrowrefresh-1-w"/>   -->
<!-- 	        <p:menuitem value="Delete" icon="ui-icon-close"   -->
<!-- 	           ajax="false"/>   -->
<!-- 	        <p:menuitem value="Homepage"  -->
<!-- 	            icon="ui-icon-extlink"/>   -->
<!-- 	    </p:contextMenu> -->

		<!-- 	messages -->
		<p:growl id="growl" showDetail="true" showSummary="true" />



		<!-- errors -->
		<pe:ajaxErrorHandler type="java.lang.IllegalStateException"
			button="Close warning!">
			<f:facet name="title">  
        Error <span style="color: red;">{error-name}</span>
			</f:facet>
			<f:facet name="body">
				<div>
					<h:form>
						<p:tabView>
							<p:tab title="Message">
								<h:panelGrid columns="2">
									<h:outputLabel value="Error message:" />
									<h:outputText value="{error-message}"
										style="font-size: 1.2em;color:navy;" />

									<h:outputLabel value="Server name:" />
									<h:outputText value="{error-hostname}"
										style="font-size: 1.2em;color:navy;" />
								</h:panelGrid>

							</p:tab>
							<p:tab title="Detail">
								<div style="overflow: auto; height: 300px; width: 700px;">
									{error-stacktrace}</div>
							</p:tab>
						</p:tabView>
					</h:form>
				</div>
			</f:facet>
		</pe:ajaxErrorHandler>
	</h:form>
</h:body>
</html>
